/*****************************************************************************
*    Copyright (C) 2008 ALi Corp. All Rights Reserved.
*    
*    Company confidential and Properietary information.       
*    This information may not be disclosed to unauthorized  
*    individual.    
*    File: ota_control.c
*   
*    Description: 
*    
*    History: 
*    Date           Athor        Version        Reason
*    ========       ========     ========       ========
*    2008/9/16      Roman         
*        
*****************************************************************************/

#include <sys_config.h>
#include <types.h>
#include <basic_types.h>
#include <mediatypes.h>
#include <api/libc/printf.h>
#include <api/libc/string.h>
#include <osal/osal.h>

#ifndef NEW_DEMO_FRAME
#include <api/libpub29/lib_pub27.h>
#include <api/libpub29/lib_as.h>
#endif

#include <api/libosd/osd_lib.h>
#include <bus/tsi/tsi.h>
#include <api/libpvr/lib_pvr.h>

#ifdef  _BUILD_OTA_E_
UINT8 show_and_playchannel;

UINT8 win_ci_dlg_get_status()
{
}
void timermsg_show(char* msg)
{
}
BOOL menus_find_root(UINT32 msgType,UINT32 msgCode,BOOL* bFlag,POBJECT_HEAD* winhandle)
{
	return FALSE;
}
BOOL cc_tsg_task_is_running(void)
{
	return FALSE;
}

INT32 pvr_r_request(PVR_HANDLE handle, UINT8 **addr, INT32 length)
{
	return 0;
}
INT32 pvr_p_request(PVR_HANDLE handle, UINT8 **addr, INT32 length, INT32 *indicator)
{
	return 0;
}
BOOL pvr_r_update(PVR_HANDLE handle, UINT32 size, UINT16 offset)
{
	return TRUE;
}
PVR_HANDLE pvr_get_handle_to_dmx(UINT32 dmx_id)
{
}

void MPGDecodeInit()
{
}

void MPGDecodeInit_ad(void* mpgDecoder)
{
}

#define SDATA long
typedef struct
{	BYTE   *input_rPtr;
	WORD   bs_length;
	SDATA  *output_wPtr;
//	BYTE   *output_raw;
	BYTE   *extbs_rPtr;
	WORD   extbs_length;
	BYTE   ismpeg1;
} DECINSIP_MPG;

typedef struct
{	BYTE status;
	BYTE bit_depth;
	WORD sample_rate;
	WORD samp_num;
	WORD left_data;
	WORD left_extdata;
	WORD chan_num;
	WORD samprateid;
	WORD inmod;
} DECOUTSIP_MPG;


DECOUTSIP_MPG  MPGDecodeOneFrame(DECINSIP_MPG mpg_para)
{
}

DECOUTSIP_MPG  MPGDecodeOneFrame_ad(void* mpgDecoder, DECINSIP_MPG mpg_para)
{
}

typedef struct
{
    int offset;//uint is bit
    int bits;//uint is bit
}ANCILLARY_DATA;

void MPGGetAncillaryData(void *temp, ANCILLARY_DATA *anc_data)
{
}

void MPGGetAncillaryData_ad(void *temp, ANCILLARY_DATA *anc_data)
{
}

#endif

